package com.ts.api.module.api.entity.bo;

import com.gitee.apanlh.web.model.vo.RequestVO;
import com.ts.api.module.api.entity.po.ApiKeyPO;
import lombok.Data;

/**
 *  API自定义推送业务实体
 *
 *  @author Pan
 */
@Data
public class ApiCustomPushBO {

    /** 主体id */
    private Long productId;
    /** API渠道实体 */
    private ApiKeyPO apiKeyPO;
    /** 请求实体类 */
    private RequestVO requestVO;

    public static ApiCustomPushBO create(ApiKeyPO apiKeyPO, Long productId, RequestVO requestVO) {
        ApiCustomPushBO apiCustomPushBO = new ApiCustomPushBO();
        apiCustomPushBO.setApiKeyPO(apiKeyPO);
        apiCustomPushBO.setProductId(productId);
        apiCustomPushBO.setRequestVO(requestVO);
        return apiCustomPushBO;
    }

}
